<#include "common/main.html">
<#macro bodyId>common-edit</#macro>
<#macro content>


<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ty-common-page">
    <h1 class="page-header">修改注册用户
        <div class="btns">
        <a class="btn btn-success" href="${rc.contextPath}/account/list">返回注册用户列表</a>
        </div>
    </h1>

    <form class="form-horizontal ac-form" role="form" id="account-form">
        <div class="form-group">
            <label class="col-sm-3 control-label required">用户ID：</label>
            <div class="col-sm-3">
                <input class="form-control ac-form-item" name="id" value="${account.id}" readonly />
            </div>
            <label class="col-sm-3 control-label required">渠道经理ID：</label>
            <div class="col-sm-3">
                <input class="form-control ac-form-item" name="managerAccountId" value="${account.managerAccountId}" readonly />
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label required">姓&nbsp; &nbsp;名：</label>
            <div class="col-sm-3">
                <input class="form-control ac-form-item" name="name" value="${account.name}" readonly />
            </div>
            <label class="col-sm-3 control-label required">注册手机号：</label>
            <div class="col-sm-3">
                <input class="form-control ac-form-item" name="phoneNumber" value="${account.phoneNumber}" readonly />
            </div>
        </div>

        <div class="form-group">

            <label class="col-sm-3 control-label required">用户类型：</label>
            <div class="col-sm-3">
                <select class="form-control ac-form-item" name="type" readonly>
                    <option value="">请选择</option>
                    <option value="1" <#if account.type=='1'>selected="true"</#if>>注册用户</option>
                    <option value="2" <#if account.type=='2'>selected="true"</#if>>渠道经理</option>
                    <option value="100" <#if account.type=='100'>selected="true"</#if>>分享达人</option>
                </select>
            </div>

        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                <button type="submit" class="btn btn-success ">保存</button>
            </div>
        </div>

    </form>

</div>

<script>
    var config = {
        save: '/account/update'
    }
</script>
</#macro>